#ifndef __Js_GameEngineHelper_H__
#define __Js_GameEngineHelper_H__

#include <new>
#include <string>
#include <hilog/log.h>
#include <napi/native_api.h>
#include "napi/common/OhosLog.h"

class Js_GameEngineHelper
{
public:
    static napi_value initJsEngineHelper(napi_env env, napi_callback_info info);
    static void terminateProcess();
    static void enableAccelerometer();
    static void disableAccelerometer();
    static void setAccelerometerInterval(float interval);

    static int getCurrentTimeStamp();
    static int getCurrentActiveTimeStamp();

    static int getScreenDpi();
    static int getDisplayOrientation();
    
    static napi_env getThreadEnv() {return _env;}

private:
    static napi_env _env;
    static float _accelerometerInterval;
    static bool _accelerometerFlag;
};
#endif /* __Js_GameEngineHelper_H__ */
